import request from '@/utils/request'


export function listBCourse(data) {
    return request({
        url: '/basedata/bcourse/findPageList',
        method: 'post',
        data: data
    })
}


export function createOrUpdateCourse(data) {
    return request({
        url: '/basedata/bcourse/createOrUpdateCourse',
        method: 'post',
        data: data
    })
}


export function findAllCourseTerm() {
    return request({
        url: '/basedata/bcourse/findAllCourseTerm',
        method: 'get',
    })
}

export function findAllCourse() {
    return request({
        url: '/basedata/bcourse/findAllCourse',
        method: 'get',
    })
}

export function delBCourse(id) {
    return request({
      url: '/basedata/bcourse/deleteById/' + id,
      method: 'delete'
    })
  }
  